-- GENERATED SPELL FOR [Gordunni Battlemaster] --


function spell0_5238(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_5238', 30287, 1)
end

function Sorts_5238(pUnit, Event)
local choix_sorts_5238 = math.random(0, 0)
if choix_sorts_5238 == 0 then
pUnit:RegisterEvent('spell0_5238', 1, 1)
end
end

function mob5238_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5238', math.random(1500, 3000), 1)
end

function mob5238_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5238_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5238_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5238, 1, 'mob5238_Action')
RegisterUnitEvent(5238, 2, 'mob5238_Leave')
RegisterUnitEvent(5238, 3, 'mob5238_Kill')
RegisterUnitEvent(5238, 4, 'mob5238_Die')
